package com.sxm.yiwei.beans.pinche;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/11/10.
 */

public class Route implements Parcelable{
    private String ownerId;
    private String serviceId;
    private String orderId;
    private String orderCode;
    private String totalAmount;
    private String pinTotalAccount;
    private String passerRequireSeats;
    private String loss_total_money;
    private long leaveOffTime;
    private String ownerMobile;
    private String ownerNickName;
    private String pinEndPoint;
    private String pinLeaveWords;
    private String pinStartPoint;
    private int vehicleType;
    private String icon;

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public long getLeaveOffTime() {
        return leaveOffTime;
    }

    public void setLeaveOffTime(long leaveOffTime) {
        this.leaveOffTime = leaveOffTime;
    }

    public String getOwnerMobile() {
        return ownerMobile;
    }

    public void setOwnerMobile(String ownerMobile) {
        this.ownerMobile = ownerMobile;
    }

    public String getOwnerNickName() {
        return ownerNickName;
    }

    public void setOwnerNickName(String ownerNickName) {
        this.ownerNickName = ownerNickName;
    }

    public String getPinEndPoint() {
        return pinEndPoint;
    }

    public void setPinEndPoint(String pinEndPoint) {
        this.pinEndPoint = pinEndPoint;
    }

    public String getPinLeaveWords() {
        return pinLeaveWords;
    }

    public void setPinLeaveWords(String pinLeaveWords) {
        this.pinLeaveWords = pinLeaveWords;
    }

    public String getPinStartPoint() {
        return pinStartPoint;
    }

    public void setPinStartPoint(String pinStartPoint) {
        this.pinStartPoint = pinStartPoint;
    }

    public int getVehicleType() {
        return vehicleType;
    }

    public void setVehicleType(int vehicleType) {
        this.vehicleType = vehicleType;
    }

    public String getLoss_total_money() {
        return loss_total_money;
    }

    public void setLoss_total_money(String loss_total_money) {
        this.loss_total_money = loss_total_money;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(String totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(String ownerId) {
        this.ownerId = ownerId;
    }

    public String getServiceId() {
        return serviceId;
    }

    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }

    public String getPinTotalAccount() {
        return pinTotalAccount;
    }

    public void setPinTotalAccount(String pinTotalAccount) {
        this.pinTotalAccount = pinTotalAccount;
    }

    public String getPasserRequireSeats() {
        return passerRequireSeats;
    }

    public void setPasserRequireSeats(String passerRequireSeats) {
        this.passerRequireSeats = passerRequireSeats;
    }

    public Route() {

    }

    public Route(Parcel in) {
        ownerId=in.readString();
        serviceId=in.readString();
        pinTotalAccount=in.readString();
        passerRequireSeats=in.readString();
        orderCode=in.readString();
        orderId=in.readString();
        totalAmount=in.readString();
        loss_total_money=in.readString();
        leaveOffTime=in.readLong();
        ownerMobile=in.readString();
        ownerNickName=in.readString();
        pinEndPoint=in.readString();
        pinLeaveWords=in.readString();
        pinStartPoint=in.readString();
        vehicleType=in.readInt();
        icon=in.readString();

    }

    public static final Creator<Route> CREATOR = new Creator<Route>() {
        @Override
        public Route createFromParcel(Parcel in) {
            return new Route(in);
        }

        @Override
        public Route[] newArray(int size) {
            return new Route[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(ownerId);
        parcel.writeString(serviceId);
        parcel.writeString(pinTotalAccount);
        parcel.writeString(passerRequireSeats);
        parcel.writeString(orderCode);
        parcel.writeString(orderId);
        parcel.writeString(totalAmount);
        parcel.writeString(loss_total_money);
        parcel.writeLong(leaveOffTime);
        parcel.writeString(ownerMobile);
        parcel.writeString(ownerNickName);
        parcel.writeString(pinEndPoint);
        parcel.writeString(pinLeaveWords);
        parcel.writeString(pinStartPoint);
        parcel.writeInt(vehicleType);
        parcel.writeString(icon);

    }
}
